%% Version of 5 February 2002
%% (\pagenos added)

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{simple}

\newcommand\@ptsize{2}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{exam}{\input{exam.clo}}
\DeclareOption{art}{\input{art.clo}}
\ProcessOptions
\input{ptsize1\@ptsize.clo}
\input{eclmacros.sty}

\setlength\paperheight {297mm}
\setlength\paperwidth  {210mm}
\@twosidefalse
\@twocolumnfalse
\setlength\overfullrule{\z@}

\setlength\lineskip{\p@}
\setlength\normallineskip{\p@}
\renewcommand\baselinestretch{}
\setlength\parskip{\baselineskip}
\setlength\parindent {\z@}
\setlength\topmargin {\z@}
\setlength\headheight{\z@}
\setlength\headsep   {\z@}
\setlength\partopsep {\z@}
\setlength\footskip  {30\p@}
\setlength\textwidth {448\p@}
\setlength\oddsidemargin {\z@}
\setlength\evensidemargin{\z@}
\setlength\marginparwidth{\z@}

\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301

\setcounter{topnumber}{2}
\renewcommand\topfraction{.7}
\setcounter{bottomnumber}{1}
\renewcommand\bottomfraction{.3}
\setcounter{totalnumber}{3}
\renewcommand\textfraction{.2}
\renewcommand\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.7}
\renewcommand\dblfloatpagefraction{.5}

\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty
\binoppenalty \@M \relpenalty \@M
\predisplaypenalty 1000
\interdisplaylinepenalty 1000
\postdisplaypenalty \z@

\setlength\rightmargin{\z@}
\setlength\leftmargini{2.5em} \setlength\leftmarginii{2.2em}
\setlength\leftmargin{\leftmargini}
\setlength\labelwidth{\leftmargini} \setlength\labelsep{.5em}
\addtolength\labelwidth{-\labelsep}
\renewcommand\theenumi{\arabic{enumi}}
\renewcommand\theenumii{\alph{enumii}}
\newcommand\labelenumi{\theenumi.}
\newcommand\labelenumii{(\theenumii)}
\renewcommand\p@enumii{\theenumi}
\newcommand\labelitemi{$\m@th\bullet$}
\newcommand\labelitemii{\normalfont\bfseries --}
\def\@listiii{\@toodeep} \def\@listv{\@toodeep}
\def\@listiv{\@spec \itemindent=\labelwidth \advance\itemindent by\labelsep}
\setlength\leftmarginiv{\z@}
\renewcommand\theenumiv{\style{enumiv}}
\newcommand\labelenumiv{({\t@bfont{\theenumiv}})}
\newcommand\labelitemiv{$\m@th\style$}
\newenvironment{tab}[1]{\ifnum\@listdepth=4\@latex@error{Can't nest tab
  environment}\@eha\fi \setcounter{enumiii}{\@listdepth}
  \@listdepth=3 \@tempskipb\parskip
  \parskip=0pt plus0.5pt \parsep\parskip \smallspec
  \def\\{\item\relax}\tabfont\textit \def\style{#1}\@styletest{#1}%
  \ifx\next\empty \def\t@btype{itemize}\@itemdepth=3 \else 
  \def\t@btype{enumerate}\@enumdepth=3 \ifx#1\roman \let\t@bfont\textit
  \else \let\t@bfont\textrm \fi \fi
  \leftmargin\z@ \labelwidth=2.5em \labelsep=0.5em \begin\t@btype\\}%
  {\end\t@btype \tabspec\smallspec \vskip-\@tempskipb 
  \global\@listdepth=\c@enumiii}
\def\@styletest#1{\def\@test##1#1##2\end{\def\next{##2}} 
  \@test\alph\Alph\arabic\roman\Roman#1\end}
\def\tabfont#1{\gdef\t@bfont{#1}}
\def\tabspec#1{\gdef\@spec{#1}}
\def\nullspec{\topsep\z@ \itemsep\z@}
\def\smallspec{\topsep\smallskipamount \itemsep\smallskipamount}
\def\medspec{\topsep\medskipamount \itemsep\smallskipamount}
\def\bigspec{\topsep\bigskipamount \itemsep\medskipamount}
\AtBeginDocument{\tabspec\smallspec}
\newenvironment{description}
  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
   \let\makelabel\descriptionlabel}}{\endlist}
\newcommand\descriptionlabel[1]{\hspace\labelsep\normalfont\bfseries #1}
\newenvironment{quotation}
  {\list{}{\listparindent 1.5em%
   \itemindent \listparindent
   \rightmargin \leftmargin
   \parsep \z@ \@plus\p@}\item[]}{\endlist}
\newenvironment{quote}
  {\list{}{\rightmargin\leftmargin}\item[]}{\endlist}

\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\renewcommand\theequation{\arabic{equation}}

\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\def\cal{\protect\pcal}
\newcommand{\pcal}{\@fontswitch{\relax}{\mathcal}}
\def\mit{\protect\pmit}
\newcommand{\pmit}{\@fontswitch{\relax}{\mathnormal}}
\newcommand\@pnumwidth{1.55em}
\newcommand\@dotsep{4.5}

\renewcommand\footnoterule{\kern-3\p@
  \hrule width .4\columnwidth \kern 2.6\p@}
\long\def\@makefntext#1{\@setpar{\@@par\@tempdima \hsize
     \advance\@tempdima-10pt\parshape \@ne 10pt \@tempdima}\par
     \parindent 1em\noindent\ifx\@makefnmark\relax\else
     \hbox to \z@{\hss\@makefnmark}\fi#1}

\newcommand\today{\number\day\space\ifcase\month\or
  Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or
  July\or Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi
  \space\number\year}

\def\datestamp{\def\@num{\relax}\d@testamp}
\def\pagenos{\def\@num{\thepage}\d@testamp}
\def\d@testamp{\def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{%
  \hbox to 0pt{\scriptsize ECL/\number\day--\number\month--\number\year\hss}
  \hfil\@num\hfil}
\def\@evenfoot{\@oddfoot}
\def\@oddhead{}\def\@evenhead{}}
\ps@headings
\thispagestyle{headings}}

\def\\{\newline}
\pagestyle{plain}
\thispagestyle{empty}
\pagenumbering{arabic}
\raggedbottom

%% For compatibility with previous versions:
\def\tabwidth#1{\setlength\labelwidth{#1}}
\def\buffer#1{\setlength\labelsep{#1}}
\let\Leq\leq \let\Geq\geq

\endinput
